AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include('shared.lua')

function ENT:GiveDrugEffects(ply)
	local drugtable = GetDrugTables()
	
	local unused = {}
	for k, v in pairs(drugtable) do
		if !ply:GetNWBool(v.NWName) then
			table.insert(unused, v)
		end
	end
	if table.getn(unused) == 0 then return false end
	
	local rdrug = table.Random(unused)
	rdrug.GiveDrugEffects(rdrug, ply)
	// used in base_drug GiveDrugEffects
	self.rdrug = rdrug
end